<?php
/**
 * @author renjianhong
 * @date 2021-9-27 17:36
 */
namespace Modules\Mallsetting\Http\Controllers\Api;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Modules\Mallsetting\Http\Controllers\Controller;

use Modules\MallSetting\Services\Api\MallSettingServices;

class MallSettingController extends Controller
{
    private $mallSettingServices;

    public function __construct(MallSettingServices $mallSettingServices)
    {
        $this->mallSettingServices = $mallSettingServices;
    }
    /**
     * 获取系统设置参数
     */
    public function index()
    {
        $result = $this->mallSettingServices->info();
        return $this->success($result);
    }

    /**
     * 获取图片
     */
    public function wxappImage()
    {
        $result = $this->mallSettingServices->getWxAppImage();

        return $this->success($result);
    }
}